<script setup>
defineOptions({ name: 'addEdit' })

import { ref } from 'vue'
import { useRoute } from 'vue-router'
const route = useRoute()
const id = ref(route.params.id ? route.params.id : '')
</script>

<template>
  <div>
    <ShopNavbar :title="id ? '编辑地址' : '添加地址'"></ShopNavbar>
    <contactForm :id="id"></contactForm>
  </div>
</template>
